<?php

/**
 * AssoSalarieUniteFonctionnelle form base class.
 *
 * @method AssoSalarieUniteFonctionnelle getObject() Returns the current form's model object
 *
 * @package    sop
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseAssoSalarieUniteFonctionnelleForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'salarie_id'     => new sfWidgetFormInputHidden(),
      'uf_id'          => new sfWidgetFormInputHidden(),
      'is_responsable' => new sfWidgetFormInputCheckbox(),
    ));

    $this->setValidators(array(
      'salarie_id'     => new sfValidatorPropelChoice(array('model' => 'Salarie', 'column' => 'id', 'required' => false)),
      'uf_id'          => new sfValidatorPropelChoice(array('model' => 'UniteFonctionnelle', 'column' => 'id', 'required' => false)),
      'is_responsable' => new sfValidatorBoolean(),
    ));

    $this->widgetSchema->setNameFormat('asso_salarie_unite_fonctionnelle[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'AssoSalarieUniteFonctionnelle';
  }


}
